package cn.wolfcode.rbac.service;

import cn.wolfcode.rbac.domain.Department;
import cn.wolfcode.rbac.qo.DepartmentQo;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author xiahuihui
 * #Description DepartService
 * #Date: 2022/7/2 13:24
 */
public interface DepartService {
    //查询所有部门
    public List<Department> findDepartmentAll();

    //根据条件分页查询
    public PageInfo<Department> findByPage(DepartmentQo qo);

    //添加部门
    public void saveDepartment(Department department);

    //根据主键id删除部门
    public void deleteDepartment(Long id);

    //根据id查询
    public Department findById(Long id);
}
